/*----------------------------------------------------------------------------
* Extern File
----------------------------------------------------------------------------*/
#ifndef __LZSS_COMPRESS__
#define __LZSS_COMPRESS__

#include <stdio.h>
#include "FlashDriver_cfg.h"
#include "FL.h"

#define LZSS_DATA_TO_FLASH (1)
#if (LZSS_DATA_TO_FLASH)
#define LZSS_DATA_TO_FLASH_SIZE (0x4000) // use to -> LZSS_DATA_TO_FLASH

extern unsigned char LZSS_DATA_TO_FLASH_ENABLE;
extern unsigned char LZSS_DATA_TO_FLASH_BUFFER[LZSS_DATA_TO_FLASH_SIZE];
extern unsigned char LZSS_DATA_TO_FLASH_COUNTER;
extern unsigned char LZSS_FLASH_PROGRAM_ERROR;

FL_ResultType LZSS_UnCompressFlashToRam_Program(void);
FL_ResultType LZSS_AppBackUp_Program(void);
FL_ResultType LZSS_App_Program(void);
FL_ResultType LZSS_Clear_Buffer(void);
#endif

#endif //__LZSS__
